<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
			

			if (!function_exists('encrypt_password')) {
	             function encrypt_password($str)
	             {
	             	global $config;
	                return sha1(md5($str) . $config['encryption_key']);
             	}
			}
			
			if (!function_exists('encrypt_cookie')) {
	             function encrypt_cookie($str)
	             {
	             	global $config;
	                return sha1($config['encryption_key'] . time() . $str);
             	 }
			}
			
?>